home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / DIAGTOOL / JPRDY101.ZIP;1 / JEOP2.BAT < prev    next >
Encoding:
DOS Batch File  |  1993-08-20  |  4.9 KB  |  176 lines

  1. IF EXIST big.txt GOTO GOTBIG
  2. ECHO Creating test file...
  3. copy test.txt+test.txt big.txt >nul
  4. copy big.txt+big.txt big2.txt  >nul
  5. copy big2.txt+big2.txt big.txt >nul
  6. copy big.txt+big.txt big2.txt  >nul
  7. copy big2.txt+big2.txt big.txt >nul
  8. copy big.txt+big.txt big2.txt  >nul
  9. copy big2.txt+big2.txt big.txt >nul
  10. copy big.txt+big.txt big2.txt  >nul
  11. copy big2.txt+big2.txt big.txt >nul
  12. copy big2.txt %1:\ >nul
  13. IF EXIST %1:\%4\nul GOTO HVTMP
  14. ECHO Setting up %1:\%4 directory
  15. mkdir %1:\%4
  16. :HVTMP
  17. copy big.txt %1:\big3.txt >nul
  18. IF EXIST %1:\temp2\nul GOTO HVTMP2
  19. ECHO Setting up %1:\TEMP2 directory
  20. mkdir %1:\temp2
  21. :HVTMP2
  22. erase %1:\big2.txt
  23. erase %1:\big3.txt
  24. copy big.txt+big.txt big2.txt >nul
  25. copy big2.txt big.txt >nul
  26. erase big2.txt
  27. GOTO RESETTEMP
  28. :GOTBIG
  29. IF EXIST %1:\%4\nul GOTO GTMP
  30. ECHO Setting up %1:\%4 directory
  31. copy test.txt+test.txt big3.txt >nul
  32. copy big3.txt+big3.txt big2.txt >nul
  33. copy big2.txt+big2.txt big3.txt >nul
  34. copy big3.txt+big3.txt big2.txt >nul
  35. copy big2.txt+big2.txt big3.txt >nul
  36. copy big3.txt+big3.txt big2.txt >nul
  37. copy big2.txt+big2.txt big3.txt >nul
  38. copy big3.txt+big3.txt %1:\big2.txt >nul
  39. erase big2.txt
  40. erase big3.txt
  41. mkdir %1:\%4
  42. :GTMP
  43. IF EXIST %1:\temp2\nul GOTO GTMP2
  44. ECHO Setting up %1:\TEMP2 directory
  45. copy test.txt+test.txt big3.txt >nul
  46. copy big3.txt+big3.txt big2.txt >nul
  47. copy big2.txt+big2.txt big3.txt >nul
  48. copy big3.txt+big3.txt big2.txt >nul
  49. copy big2.txt+big2.txt big3.txt >nul
  50. copy big3.txt+big3.txt big2.txt >nul
  51. copy big2.txt+big2.txt big3.txt >nul
  52. copy big3.txt+big3.txt big2.txt >nul
  53. copy big2.txt+big2.txt %1:\big3.txt >nul
  54. erase big2.txt
  55. erase big3.txt
  56. mkdir %1:\temp2
  57. erase %1:\big3.txt
  58. :GTMP2
  59. IF EXIST %1:\big2.txt erase %1:\big2.txt
  60. :RESETTEMP
  61. IF EXIST %1:\%4\test1.txt erase %1:\%4\test?.txt
  62. IF EXIST %1:\temp2\big.txt erase %1:\temp2\big.txt
  63. IF %3X==NX GOTO NOJD
  64. IF %3X==nX GOTO NOJD
  65. IF %3X==ANX GOTO NOJD
  66. IF %3X==anX GOTO NOJD
  67. JD /* /Monitor=%1 /TargetDirectory=%4
  68. IF ERRORLEVEL 13 GOTO NOTEMP
  69. IF ERRORLEVEL 12 GOTO NOMONITOR
  70. IF ERRORLEVEL 9 GOTO CACHED
  71. IF ERRORLEVEL 4 GOTO FAILURE
  72. IF ERRORLEVEL 3 GOTO ALREADY
  73. IF ERRORLEVEL 1 GOTO FAILURE
  74. :ALREADY
  75. ECHO ----------------------------------------------------
  76. ECHO        Now monitoring drive %1
  77. GOTO LOADCACH
  78. :NOJD
  79. ECHO You have requested that no monitoring be performed.
  80. :LOADCACH
  81. ECHO ----------------------------------------------------
  82. IF ERRORLEVEL 3 GOTO SKIPLOAD
  83. IF %2==A GOTO USESD
  84. IF %2==a GOTO USESD
  85. IF %2==B GOTO USENC
  86. IF %2==b GOTO USENC
  87. IF %2==C GOTO USESC
  88. IF %2==c GOTO USESC
  89. IF %2==D GOTO USEPCC
  90. IF %2==d GOTO USEPCC
  91. IF %2==E GOTO USESPCK
  92. IF %2==e GOTO USESPCK
  93. GOTO NOCACHE
  94. :USESD
  95. ECHO    You have requested that SmartDrive be loaded.
  96. ECHO ----------------------------------------------------
  97. smartdrv a+ b+
  98. GOTO CACHELOADED
  99. :USENC
  100. ECHO    You have requested that Norton Cache be loaded.
  101. ECHO ----------------------------------------------------
  102. ncache2 INSTALL /a /i
  103. GOTO CACHELOADED
  104. :USESC
  105. ECHO    You have requested that Speedcache+ be loaded.
  106. ECHO ----------------------------------------------------
  107. scplus install /a /m
  108. GOTO CACHELOADED
  109. :USEPCC
  110. ECHO    You have requested that PC-Cache be loaded.
  111. ECHO ----------------------------------------------------
  112. pc-cache /sizext:1024 %1:w
  113. GOTO CACHELOADED
  114. :USESPCK
  115. ECHO    You have requested that Super PC-Kwik be loaded.
  116. ECHO ----------------------------------------------------
  117. super /FDSupport=AdvancedReadWrite
  118. GOTO CACHELOADED
  119. :NOCACHE
  120. ECHO  You have not specified a cache so none was loaded.
  121. ECHO ----------------------------------------------------
  122. GOTO STARTTEST
  123. :SKIPLOAD
  124. ECHO           Loading of a cache was skipped.
  125. ECHO ----------------------------------------------------
  126. GOTO STARTTEST
  127. :CACHELOADED
  128. GOTO STARTTEST
  129. :FAILURE
  130. ECHO    Jeopardy Detection program failed to load.
  131. GOTO DONE
  132. :CACHED
  133. ECHO A cache has already been loaded.  Please unload it and try again.
  134. GOTO DONE
  135. :NOMONITOR
  136. ECHO Cannot monitor drive %1
  137. GOTO DONE
  138. :NOTEMP
  139. ECHO No %4 directory in root directory of drive %1
  140. GOTO DONE
  141. :STARTTEST
  142. IF %3X==AX GOTO USEAPP
  143. IF %3X==aX GOTO USEAPP
  144. IF %3X==ANX GOTO USEAPP
  145. IF %3X==anX GOTO USEAPP
  146. ECHO A test will be performed by copying files using the COPY command.
  147. PAUSE
  148. @ECHO ON
  149. copy test.txt %1:\%4\test1.txt
  150. copy test.txt %1:\%4\test2.txt
  151. copy test.txt %1:\%4\test3.txt
  152. copy test.txt %1:\%4\test4.txt
  153. copy test.txt %1:\%4\test5.txt
  154. copy test.txt %1:\%4\test6.txt
  155. copy test.txt %1:\%4\test7.txt
  156. copy test.txt %1:\%4\test8.txt
  157. copy big.txt %1:\TEMP2
  158. @ECHO OFF
  159. ECHO To erase the files just copied -- after disk I/O is complete --
  160. PAUSE
  161. ECHO Note: DOS itself may produce a brief jeopardy period when it erases files.
  162. @ECHO ON
  163. erase %1:\%4\test?.txt
  164. erase %1:\temp2\big.txt
  165. @ECHO OFF
  166. GOTO DONE
  167. :USEAPP
  168. ECHO A test will be performed by copying using a sample application.
  169. PAUSE
  170. appcopy %1 %4
  171. ECHO Note: DOS itself may produce a brief jeopardy period when it erases files.
  172. @ECHO ON
  173. erase %1:\%4\test?.txt
  174. erase %1:\temp2\big.txt
  175. :DONE
  176.